# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-pyzabbix
pkgver=0.8.2
pkgrel=0
pkgdesc="Library to interact with the Zabbix API"
url="https://github.com/lukecyca/pyzabbix"
arch="noarch"
license="LGPL-2.1-or-later"
depends="python3 py3-requests"
makedepends="python3-dev py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/lukecyca/pyzabbix/archive/$pkgver.tar.gz"
builddir="$srcdir/${pkgname#py3-}-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="e191c449b36ec13b66ed52889cdcdd8318b2613eb657f5fbb27cf6d7c2554c472ea051933fb6ff8168535c281e7cc94764c8229a7772ead49d00e0fe9c139793  py3-pyzabbix-0.8.2.tar.gz"
